package com.framework.sc.graphqldemo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @authore zyx
 * @date 2018/8/14 13:44
 */
@Configuration
public class ApplicationWebConfig implements WebMvcConfigurer {


    public void addViewControllers(ViewControllerRegistry registry){
        registry.addViewController("/graphiql").setViewName("forward:/graphiql/index.html");
    }
}
